package com.hand.qiandu.config;

import com.hand.qiandu.filter.PermissionFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.servlet.FilterRegistration;

/**
 * @author 24748  刘瑞锋
 * @date 2019/7/17
 */
@Configuration
public class FilterConfiguration {

//    @Bean
//    public FilterRegistrationBean filterRegistration(){
//        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
//        filterRegistrationBean.setFilter(new PermissionFilter());
//        filterRegistrationBean.addUrlPatterns("/");
//        System.out.println("FilterConfiguration");
//        return filterRegistrationBean;
//    }
}
